@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>技术服务费管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="condition" name="技术提供方名称" />
                                <#TimeCon id="beginDate" name="开始时间" />
                                <#TimeCon id="endDate" name="结束时间" />
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="CostService.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="CostServiceTableToolbar" role="group">
                            @if(shiro.hasPermission("/costService/add")){
                                <#button name="添加" icon="fa-plus" clickFun="CostService.openAddCostService()"/>
                            @}
                            @if(shiro.hasPermission("/costService/update")){
                                <#button name="修改" icon="fa-edit" clickFun="CostService.openCostServiceDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/costService/delete")){
                                <#button name="删除" icon="fa-remove" clickFun="CostService.delete()" space="true"/>
                            @}
                        </div>
                        <#table id="CostServiceTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/finance/costService/costService.js"></script>
<script>
    $.ajax({
        type: "post",
        url: "/channel/list",
        data: {},
        dataType: "json",
        success: function(data){
            for(var i=1;i<data.length;i++) {
                $('#company').append('<option value="'+data[i].id+'" selected="1">'+data[i].channelName+'</option>')
            }
        },
        error: function(err) {
            console.log(err)
        }
    });
</script>
@}
